rm *.out
rm *.class

for f in $(ls ..)
do
	file="../$f"

	if [ -f $file ]
	then

		fr=${f::$[$[${#f} -5]]}

		echo "Rodando "$file
		javac $file -d .
		java $fr > $fr".out"
		rm *.class

	fi

done
